using System;
using System.Collections.Generic;
using System.Text;

namespace CoastToCoast.Game {
    public class Cell {
        private Board _board;
        public Board Board {
            get { return _board; }
            set { _board = value; }
        }

        // Handle unit stacking later
        //private List<Unit> _units = new List<Unit>();
        //public List<Unit> Units {
        //    get { return _units; }
        //}

        private Unit _unit;
        public Unit Unit {
            get { return _unit; }
            set { 
                _unit = value; 
                if (_unit != null) _unit.Cell = this;
            }
        }

        // REVIEW: Default to land tile for now
        private Terrain _terrain = new LandTile();
        public Terrain Terrain {
            get { return _terrain; }
            set { _terrain = value; _terrain.Cell = this; }
        }

        public Cell(Board board) {
            Board = board;
        }
    }
}
